package fr.upmc.cie.data;

import java.io.Serializable;
import java.util.ArrayList;

import android.content.ContentValues;

public class CategorieItem implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id;
	private String name;
	private ArrayList<ChannelItem> channels;

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setChannels(ArrayList<ChannelItem> channels) {
		this.channels = channels;
	}

	public ArrayList<ChannelItem> getChannels() {
		return channels;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}
	
	public ContentValues getContentValues(){
		ContentValues cv = new ContentValues();
		cv.put("name",name);
		return cv;
	}
	
	public String toString(){
		return this.name;
	}

}
